Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(language-service): do not crash when Angular cannot be located #14123

Closed
wants to merge 1 commit into from

Conversation

chuckjaz
Copy link
Contributor

Fixes #14122

What kind of change does this PR introduce? (check one with "x")

[x] Bugfix

What is the current behavior? (You can also link to an open issue here)

The language service crashes when open on project that does not contain angular (#14122)

What is the new behavior?

The language service returns undefined for all calls.

Does this PR introduce a breaking change? (check one with "x")

[ ] Yes
[x] No

containingFile
} `: ''}`),
null);
return this.getStaticSymbol(module, symbolName);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maybe use a fake path so that it is clear that this symbol was produced from an error condition? E.g. this.getStaticSymbol('ERROR', symbolName)?

@tbosch tbosch added the action: cleanup The PR is in need of cleanup, either due to needing a rebase or in response to comments from reviews label Jan 30, 2017
@chuckjaz chuckjaz removed the action: cleanup The PR is in need of cleanup, either due to needing a rebase or in response to comments from reviews label Jan 31, 2017
@mhevery mhevery added the action: merge The PR is ready for merge by the caretaker label Jan 31, 2017
@mhevery mhevery closed this in 49fb814 Jan 31, 2017
asnowwolf pushed a commit to asnowwolf/angular that referenced this pull request Aug 11, 2017
@angular-automatic-lock-bot
Copy link

This issue has been automatically locked due to inactivity.
Please file a new issue if you are encountering a similar or related problem.

Read more about our automatic conversation locking policy.

This action has been performed automatically by a bot.

@angular-automatic-lock-bot angular-automatic-lock-bot bot locked and limited conversation to collaborators Sep 10, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
action: merge The PR is ready for merge by the caretaker cla: yes
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Language service crashes if the asked for completions and it cannot locate Angular
4 participants